#!/bin/sh
cd /data/program/mongo42/mongo_data
mongod44 -f cfs/a/mongod.cnf
mongod44 -f cfs/b/mongod.cnf 
mongod44 -f cfs/c/mongod.cnf
echo starting config server replica sets ...
sleep 20
echo started config server replica sets.


mongod44 -f rs_a/a/mongod.cnf
mongod44 -f rs_a/b/mongod.cnf
mongod44 -f rs_a/c/mongod.cnf
echo started replica sets rs_a

mongod44 -f rs_b/a/mongod.cnf
mongod44 -f rs_b/b/mongod.cnf
mongod44 -f rs_b/c/mongod.cnf
echo started replica set rs_b

mongos44 -f mongos/mongod.cnf
echo started mongos
echo finished all shard start work
